package com.ruoyi.workflow.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 套餐审核对象 bus_car_package_audit
 *
 * @author shier
 * @date 2022-11-17
 */
@Getter
@Setter
@ToString
@TableName("bus_car_package_audit")
public class CarPackageAudit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    public static final String CAR_PACKAGE_DEFINITION_KEY = "car_package"; // 流程定义的Key

    public static final Integer PACKAGE_AUDIT_STATUS_PENDING  = 0; // 正在审核
    public static final Integer PACKAGE_AUDIT_STATUS_REJECTED = 1; // 审核拒绝
    public static final Integer PACKAGE_AUDIT_STATUS_PASSED   = 2; // 审核通过
    public static final Integer PACKAGE_AUDIT_STATUS_CANCELED = 3; // 撤销审核

    @TableId(type = IdType.AUTO)
    private Long       id;
    private Long       serviceItemId;    // 服务项ID(套餐ID)
    private String     serviceItemName;  // 套餐名字
    private String     serviceItemInfo;  // 套餐备注
    private BigDecimal serviceItemPrice; // 套餐价格
    private String     instanceId;       // 流程实例ID
    private String     creatorId;        // 发起审核人ID(当前登录的用户ID)
    private String     info;             // 发起审核时填写的备注
    private Integer    status;           // 审核状态
    private Date       createTime;       // 审核创建时间

    @TableField(exist = false)
    private SysUser creator; // 当前登录用户对象
}
